import { request, upload } from '../utils/http-server';

export function submitAdvise(data){
    return request({
        url: '/api/milk/feedback/advise',
        method: 'post',
        data
    })
}

export function uploadImage(filePath){
    return new Promise((resolve, reject)=>{
        upload({
            url:"/api/milk/common/upload", 
            filePath, 
            name:"file", 
            formData:{
                "file": filePath
            },
            callback:(res)=>{
                resolve(res);
            }
        })
    })
}